package com.translate.web.service;

import java.util.List;

import com.translate.entity.Department;
import com.basic.service.contract.IBaseService;
import com.translate.vo.contract.IDepartmentVO;

/**
 * 部门服务
 * @author 111
 *
 */
public interface IDepartmentService extends IBaseService<Department>{

	/**
	 * 获取部门列表
	 * @param <VO>
	 * @param target
	 * @return
	 */
	public <VO extends IDepartmentVO> List<VO> getDepartmentsToCache(Class<VO> target);
	
	/**
	 * 获取部门列表
	 * @param <VO>
	 * @param target
	 * @return
	 */
	public <VO extends IDepartmentVO> List<VO> getTopDepartmentsToCache(Class<VO> target);
	
	/**
	 * 获取部门详情
	 * @param departmentId
	 * @return
	 */
	Department getDepartmentCache(int departmentId);
}
